﻿ 

using MVC.OA.IDAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace MVC.OA.DALFactory
{
   public partial class StaticDALFactory
    {
	
		public static IActionInfoDAL GetActionInfoDAL()
		{
			return Assembly.Load(assembly).CreateInstance(assembly + ".ActionInfoDAL") as IActionInfoDAL;
		}	
	
		public static IOrderInfoDAL GetOrderInfoDAL()
		{
			return Assembly.Load(assembly).CreateInstance(assembly + ".OrderInfoDAL") as IOrderInfoDAL;
		}	
	
		public static IRoleInfoDAL GetRoleInfoDAL()
		{
			return Assembly.Load(assembly).CreateInstance(assembly + ".RoleInfoDAL") as IRoleInfoDAL;
		}	
	
		public static IUserInfoDAL GetUserInfoDAL()
		{
			return Assembly.Load(assembly).CreateInstance(assembly + ".UserInfoDAL") as IUserInfoDAL;
		}	
	}
}